package com.h2.org.springframework.beans.factory.config;

import android.util.Log;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.PlaceholderResolver;

public class DefaultPlaceholderResolver
  implements PropertyPlaceholderConfigurer.PlaceholderResolver
{
  public static final String DEFAULT_PLACEHOLDER_PREFIX = "${";
  public static final String DEFAULT_PLACEHOLDER_SUFFIX = "}";

  public String getPlaceholder(String paramString)
  {
    return null;
  }

  public String resolvePlaceholder(String paramString)
  {
    StringBuilder localStringBuilder = new StringBuilder(paramString);
    int i = paramString.indexOf("${");
    String str1;
    if (i != -1)
    {
      int j = paramString.lastIndexOf("}");
      if (j != -1)
      {
        str1 = localStringBuilder.substring(i + "${".length(), j);
        String str2 = getPlaceholder(str1);
        if (str2 == null)
          break label84;
        localStringBuilder.replace(i, j + "}".length(), str2);
      }
    }
    while (true)
    {
      return localStringBuilder.toString();
      label84: Log.e("DefaultPlaceholderResolver", "Placeholder not found: " + str1);
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.h2.org.springframework.beans.factory.config.DefaultPlaceholderResolver
 * JD-Core Version:    0.6.2
 */